﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HZ.DrugTrade.BLLFactory;
using HZ.DrugTrade.IBLL;
using HZ.DrugTrade.Model;

namespace HZ.DrugTrade.Web.Hospitals
{
    public partial class defaultContent : BasePage
    {
        IBLL_Hospital ih = Factory.BLL_Hospital();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //如果企业没有没有完善其基本信息，将定位到医疗机构信息页面
                Model.HospitalInfo hospital = ih.GetHospitalInfoByID(CurrentAccount.GetUser().Org.OrgID);    //update by lhl
                if (string.IsNullOrEmpty(hospital.TelNo))
                {
                     HZ.Web.WebUtil.RedirectByScript("SystemManage/HospitalInfo.aspx");
                }
            }
        }
    }
}
